package cn.net.wanji;

import cn.net.wanji.cache.CacheManager;
import cn.net.wanji.cache.IdentifyTypeCacheManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@SpringBootApplication
@EnableScheduling
public class ZhejiangMainControlApplication {

    public static void main(String[] args) {
        SpringApplication.run(ZhejiangMainControlApplication.class, args);
    }

    @Bean
    public CacheManager cacheManager() {
        return new CacheManager();
    }

    @Bean
    public IdentifyTypeCacheManager identifyTypeCacheManager() {
        return new IdentifyTypeCacheManager();
    }
}
